I have declared a `Scanner` object named Scan

I want to prompt the user to enter however many items they like:

```
ie: Enter items: 1 2 6 4 3 12

```

how do I count how many numbers were entered? For example, the output from above should be 6, since there are 6 numbers

I have tried

```
int count = 0;
while(Scan.hasNextInt()){
count++ };

```