added new function to get number of commits
added new function to get number of commits ahead of remote