title: Best way to count the number of pdf files in Github Enterprise repositories
body: <p>I am looking for a way to count the number of PDF files in all repositories existing in a self hosted github server (<a href="https://github.com/enterprise" rel="nofollow noreferrer">Github Enterprise</a>). I've got the idea of iterating over all the repositories, <a href="https://developer.github.com/v3/repos/contents/#get-repository-content" rel="nofollow noreferrer">list</a> the existing files and count but I'm not sure if this is the best idea. What would be the recommended way to do that ?</p>
  <p>Thanks</p>