title: How can I get the total number of pages on Spring Data?
body: <p>I have an Angular app that shows a list of entities and I have a 'show more' button that increments page number and uses this method:</p>
  
  <pre><code>Page&lt;myEntity&gt; result = myRepo.findByAttr(attr, page);
  </code></pre>
  
  <p>I format this <code>result</code> and send it via REST's JSON. I want to disable 'show more' button if there's no further pages to get. There's a 'frameworkie' specific way to retrieve this number or I should use <code>findAll()</code> and count through this list?</p>