<% var newNotifications = notifications.where({'status': 'unread'}) %> <% if (newNotifications.length) { %> <%= newNotifications.length %> <% } %>