There is the exotic way and the practical way. Both have multiple solutions. But let me ask you: is it possible to keep the data separate in your workbook? If so, then I suggest you do so.
The next step would be something like this:
The COUNT function counts the number of cells that contain numbers, and counts numbers within the list of arguments. Use the COUNT function to get the number of entries in a number field that is in a range or array of numbers.