count-snippet.h 118 Bytes Edit 1 2 3 std::iterator_traits<int*>::difference_type count; using embb::algorithms::Count; count = Count(range, range + 8, 1);