Wrong query statistic counting