Please share a way of counting the user input without asking the user to tell the input count and without using methods of Scanner, math or any predefined classes...? I need to understand the logic implemented to count the no. of user input.