A little warning, working with counters is relativly bad, especially to pick up your series. It's better to use a associative array to match with a key