Count the Number of Infection Sequences