I'm very new to this, just trying to piece together snippets from other posts.
I'm unsure how to count the number of elements on a page, then add a class to differentiate them with a number.
<script type="text/javascript">
$(document).ready(function(){
$('.item').each(function (e) { $(this).addClass('count' + e); });
});
</script>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
output to:
<div class="item count1"></div>
<div class="item count2"></div>
<div class="item count3"></div>