Count number of commits