minor change
changed counter style
refactored and validation added