fix: runtime panic on stat.CountXxx++ when stat is nil