9423
by rwaldron
HTML
First: <span id="first">...</span><br/>
Second: <span id="second">...</span><br/>
<a href="http://www.example.com">example</a>
JavaScript
jQuery('#first').html(jQuery('a').filter('a[href^="http://www.example"]').size());
jQuery('#second').html(jQuery('a').filter('[href^="http://www.example"]').size());