notes count in 1 query  for mr and commits