How does transmission of infection depend on population size