Improved performance of counting number of submissions for overview page