优化统计算法

Signed-off-by: Leo Chen <chenlt78@qq.com>