getDynamic function

Gets the current number of infected hosts for the full length of the simulation