add validation for counter deletion