diff --git a/app/views/commits/_head.html.haml b/app/views/commits/_head.html.haml
index 23ad920d8cec05ee48b858b3c8607dc7d3c7caaf..6c261137f1f9914098ad5e6b7b09033df0f4c225 100644
--- a/app/views/commits/_head.html.haml
+++ b/app/views/commits/_head.html.haml
@@ -13,12 +13,12 @@
%li{:class => "#{branches_tab_class}"}
= link_to project_repository_path(@project) do
Branches
- %span.number= @project.repo.branches.count
+ %span.number= @project.repo.branch_count
%li{:class => "#{'active' if current_page?(tags_project_repository_path(@project)) }"}
= link_to tags_project_repository_path(@project) do
Tags
- %span.number= @project.repo.tags.count
+ %span.number= @project.repo.tag_count
- if current_page?(project_commits_path(@project)) && current_user.private_token