The "namecount" example is rather silly though. It can be solved by a shell script much shorter than one line (sort|uniq -c).
> Of course it can be done all with command-line tools, but the point was not to show you how you can count and sort word occurrences. I just wanted to show that it's possible to include Python scripts in your "command line workflow". I wanted to give a simple example that would give you a taste of the idea :)