-<span id="inboxanchor" class="count-number"><%= @user.new_messages.size %></span>
\ No newline at end of file
+<% if current_user.new_messages.size > 0 %>
+<span id="inboxanchor" class="badge count-number m-1"><%= current_user.new_messages.size %></span>
+<% end %>