Run and count
The other day I needed to run a command a number of times and see how many times it worked, and how many times it failed (as measured by the return code).
I could have done this in Python, or various other languages, but for this bash seemed like it