Newer rustc can't infer the type of the generation count variable, set explicitely.