std::iterator_traits::difference_type count; using embb::algorithms::Count; count = Count(range, range + 8, 1);