Correct browsing commits on a selected branch.

The selected branch information was not being passed to CountCommits, which could cause it to return zero when there is no Master / default branch. Then, a 404 error was returned. Passed @object (the branch name) into the optional parameter on CountCommits call.