<% count = Order.available_for_user(current_user).where(order_status_id: 2).count %>

<% if count == 0 %> 0 <%else%> <%= count%> <%end%> <%= I18n.t(:orders)%>