Add optional number to releases command

Add a `-n`, `--num` flag to the `releases` index command, to specify the number
of releases to be shown. Implements #494

There will be a separate pull request for Herokai, but this should work for everyone else.