Added a count function to interval for counting the total number of elements represented.