#include <iostream>
#include <algorithm>

int main()
{
    const int SIZE = 5;
    int dummy[ SIZE ] = { 5, 10, 5, 5, 10 };

    std::cout
        << "count of values 5 equals "
        << std::count( dummy, dummy + SIZE, 5 )
        ;

    return 0;
}