up and up-down counter