@andrewjbtw I'm impressed you know how to use find like that--I always resort to using xargs because I can never remember.
That little cut, sort and uniq trick is so useful to compose in situations where you've got a pipeline of things to count.
I feel like this command needs a memorable alias like ftypes, or maybe something magical ✨
@edsu for whatever reason, I've always found xargs hard to grasp. When I use it I often end up running another bash command with 'bash -c' At work I use xargs to parallelize things if parallel isn't installed.
I've gotten comfortable with 'find ... -exec' for simple things after the exec. In this case, the pipe into cut won't handle filenames with colons properly for the outcome I want and I'd probably use something with xargs to deal with that if needed.