Table generating to store statistics