diff --git a/src/api.js b/src/api.js
index <HASH>..<HASH> 100644
--- a/src/api.js
+++ b/src/api.js
@@ -30,6 +30,28 @@ exports = module.exports = {
         return fs.getData(source);
       })
       .then(function (data) {
+        var group, i;
+        var count = 0;
+        var shouldBeDisplayed = function (item) {
+          return (config.display.access.indexOf(item.access[0]) !== -1) && !(!config.display.alias && item.alias);
+        };
+
+        // Adding a `display` key to each item
+        for (group in data) {
+          for (i = 0; i < data[group].length; i++) {
+            data[group][i].display = shouldBeDisplayed(data[group][i]);
+
+            if (data[group][i].display === true) {
+              count++;
+            }
+          }
+        }
+
+        config.dataCount = count;
+        
+        return data;
+      })
+      .then(function (data) {
         logger.log('Folder `' + source + '` successfully parsed.');
         config.data = data;
Moved some logic away from templates, back in the JS side