Counts all occurrences of elem in range.
The range of values to count in.
The element to count for in range.
Number of occurrences of elem in range.
See Implementation
Counts all occurrences of elem in range.