Use enumerate() instead an extra counter