import Component from '@ember/component';


export default Component.extend({
  tagName: 'div',
  classNames: [ 'col-lg-3', 'col-md-4' ],
  data: null,
  label: '',
  count: 0,
  init() {
    this._super();
  },

  didReceiveAttrs() {
    this._super(...arguments);
    if (this.model[`${this.label.toLowerCase()}s`] != null) {
      this.set('count', this.model[`${this.label.toLowerCase()}s`]);
    }
  },
});

@@ -35,16 +35,60 @@
 onent';%0A
+import %7B pluralize %7D from 'ember-inflector';
 %0A%0Aexport
@@ -317,32 +317,42 @@
  (this.model%5B%60$%7B
+pluralize(
 this.label.toLow
@@ -359,18 +359,18 @@
 erCase()
+)
 %7D
-s
 %60%5D != nu
@@ -413,16 +413,26 @@
 odel%5B%60$%7B
+pluralize(
 this.lab
@@ -451,10 +451,10 @@
 se()
+)
 %7D
-s
 %60%5D);

use pluralize