Given a directory tree such as in the following example, we would like to know

  1. How many files are in it?
  2. How many files are in each one of the subdirectories?

groups/
  all.txt
  people/
    John.txt
    Jane.txt
  maskots/
    Foo.txt
    Bar.txt
  other -> maskots

All that using the Unix/Linux Shell.