Calculates the number of elements in a range given start, end, step, and
whether or not it is inclusive.
Calculates the number of elements in a range given start, end, step, and
whether or not it is inclusive. Throws an exception if step == 0 or
the number of elements exceeds the maximum Int.