Adapted fresh counter so it starts at 0 and the state stores "next"
fresh.