Using js to count the number of content divs.