title: Row Count in AgGrid
body: <p>I want show the row count in my AgGrid, but I got a problem.</p>
  
  <pre><code>    ngOnInit() { 
        console.log(this.gridOptions.api.getDisplayedRowCount());
      }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>ERROR TypeError: Cannot read property 'getDisplayedRowCount' of undefined
      at ProjectListComponent.webpackJsonp../src/app/project-list/project-list.component.ts.ProjectListComponent.ngOnInit (project-list.component.ts:178)
      at checkAndUpdateDirectiveInline (core.js:12411)
      at checkAndUpdateNodeInline (core.js:13935)
      at checkAndUpdateNode (core.js:13878)
      at debugCheckAndUpdateNode (core.js:14771)
      at debugCheckDirectivesFn (core.js:14712)
      at Object.eval [as updateDirectives] (ProjectListComponent_Host.ngfactory.js? [sm]:1)
      at Object.debugUpdateDirectives [as updateDirectives] (core.js:14697)
      at checkAndUpdateView (core.js:13844)
      at callViewAction (core.js:14195)
  </code></pre>
  
  <p>Api the AgGrid:</p>
  
  <pre><code>getDisplayedRowCount()  Returns the total number of displayed rows.
  </code></pre>
  
  <p>I don't understand why I have this problem...</p>