Make it possible to specify the number of commits to display.

Fixes #1.