Counts Generations until solution