A Partition-Based Group Testing Algorithm for Estimating the Number of Infected Individuals