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

bool at_least_three(int value) {
    return value >= 3;
}

int main() {
    const std::vector<int> readings{3, 1, 4, 1, 5};
    const auto count = std::count_if(readings.begin(), readings.end(), at_least_three);
    std::cout << count << '\n';
    return 0;
}
