gs quiz3- made the getter and setter in the counter class