Multiple widgets in wordpress

Try to generate your div to have a value that makes clear what kind of content it loads, for example:

<div class="social-count" role="facebook"></div>
<div class="social-count" role="twitter"></div>

Then, via jQuery, change them by that value, for example:

$('.social-count[role="facebook"]').html(count);
$('.social-count[role="twitter"]').html(count);