Its $(document).ready
your looking for, the is also $(window).load
Also the resource you want to load is a js file, which utilizes document.write so have to load it inline. Put it as a script tag at the bottom of you page
<script src='http://counter2.freecounterstat.com/private/counter.js?c=36c0ded599f90fd9584581d3e2b02682'></script>
</body>