Refactored input manipulation functions

Split clearing the input field into a separate function in order to
allow validation functionality for addItem. Also changed updateCount to
display 0 items left instead of removing the counter.