Take branch param to getAheadBehindCount()