Fix issue #574

Do not ignore item count when calculating median.  Median is
calculated similar to generateStatistics.
Merge pull request #575 from ejc123/issue_574

Fix issue #574