How to get Scroll event and count the number of scroll events
<p>I am trying to append data to html table when the user scrolls down to the end of the page, which i am able to do. But how do I keep the count of scroll downs?? At each instance I need the count to be added by one, each time my url will be appended by that count.. and when the count reaches 6, i should stop appending the count to the urls..
Please share some thought on how to approach that...</p>

<p><a href="http://jsfiddle.net/Sullan/sk5yc/1/" rel="nofollow">test file</a> is added here...</p>
