Get rid of count conditional statements in input processing.