[CONSRV] Keep a count of input events in the console queue + code simplifications.