title: Protractor - count elements in repeater and print it
body: <p>I'm trying to count the elements in repeater and to print it to console.</p>
  
  <p>This is the markup: </p>
  
  <pre><code>&lt;div class="col-md-3 ng-scope" ng-repeat="app in userApps" &gt;...&lt; /div&gt; 
  </code></pre>
  
  <p>currently I'm counting and comparing:</p>
  
  <pre><code>expect(element.all(by.repeater('app in userApps')).count()).toEqual(4);
  </code></pre>
  
  <p>it works, but I want to be able to print it also.</p>
  
  <p>I've tried this:</p>
  
  <pre><code>var rows = element.all(by.repeater("app in userApps"));
  var sum = rows.count(); 
  console.log(sum.getText());
  </code></pre>
  
  <p>but I'm getting:</p>
  
  <pre><code>TypeError: Object [object Object] has no method 'getText'
  </code></pre>
  
  <p>there are two question actually-
  1. am I doing it the correct way?
  2. how do I print it to console?</p>