notes count in 1 query for mr and commits
Merge pull request #6992 from skv-headless/project_commits_sql_optimization

notes count in 1 query  for mr and commits