JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-1.5.min.js" type="text/javascript"></script>

First: <span id="first">...</span><br/>
Second: <span id="second">...</span><br/>

<a href="http://www.example.com">example</a>

<script type="text/javascript">

jQuery('#first').html(jQuery('a').filter('a[href^=http://www.example]').size());
jQuery('#second').html(jQuery('a').filter('[href^=http://www.example]').size());
</script>