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