Starting counting algorithm
Take number input and add 1 to its location in array