adjust code so counter inc up to number enter instead of from