title: Github API How to get a count of all the files of a git repository with a particular extension (.c, .cpp, .py etc) using python language?
body: <p>I am trying to implement a python code to count files with a particular extension (of a repository) in Github. Any help in this direction will be appreciated.</p>
  
  <p><strong>EDIT</strong>: I have been able only to list the repositories of a particular language:
        For example by requesting the below url:
              url='<a href="https://api.github.com/legacy/repos/search/Go?language=Go" rel="nofollow">https://api.github.com/legacy/repos/search/Go?language=Go</a>'</p>
  
  <p>But, is there any way I can check all the files with a particular extension and count. I have never used an api before.</p>