Write a class Counter that has a maxCount property and a vetoable property count that ensures that the value of the count property never exceeds the value of the maxCount property. If an attempt is made to set the count property to a value greater than the value of the maxCount property, the new value should be rejected.
Both count and maxCount are of type Int.