Java Number Counter