How to identify the size of a variable according to another variable

I assumed you wanted to take a dataset, consider certain columns to be groups for which counts were to be determined. These are exactly the kind of lessons / examples provided in the book. If you want more specific support. Then you can provide a reprex. I won't be downloading any substantial files from weTransfer, it's better to curate a sample of inputs and provide those in forum acceptable ways.