#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
	vector<int> x{ 1, 2, 3, 4, 5, 6, 7, 8 };
	
	int numOdd = count_if(x.begin(), x.end(), [] (int in) {
		return in%2;	
	});
	
	std::cout<< "there were " << numOdd << " odd numbers" << std::endl;
	
	return 0;
}