Life span and the problem of optimal population size