Add possibility to limit the number of commit messages per push.

Implements #7.