Counts intervals.

Refs #84