Improved the speed and performance of counting the number of submissions for a form.