Add repository#commit_count method

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>