Fix issue #574

Do not ignore item count when calculating median.  Median is
calculated similar to generateStatistics.