Make AutoIncrementer a generic Counter