Loads generation number from the log name supplied.