retry.sh: add a simple summary of return codes in count mode

I've added a simple bash script to test this - random.sh.