Fix wrong count statistic