enhance counter for input.