Ok, so you probably need to figure out the date range in your script as well. moment.js is a great library to use for stuff like this.
Once you have the data, you can write it into the page with jQuery using something like this:
Markup:
Script:
M.
Once you have the data, you can write it into the page with jQuery using something like this:
Markup:
<divid="myCount"/>
$("#myCount").html(itemCount);