Added function to set total count of cases