title: Counting the number of http requests in javascript
body: <p>Is there a way in javascript to count the number of http request that a website does to a server?
  EXAMPLE: In my local webserver running with apache tomcat i have a simple html page helloworld.html with a style.css file, so when i type "localhost:8080/helloworld.html" the browser does two requests, one for helloworld.html and one for style.css. </p>
  
  <p>My goal is to show this number on helloworld.html for a video element, when i play it start several number of http get to the webserver.</p>
  
  <p>I'm trying for several days on the web but I have not found anything. I found webrequest api but i think that only chrome extension can use it. I found also chrome.devtools.network API but i can use it only when chrome dev tools is opened.</p>