This can be done using CSS.
HTML
<div class="icon"> <span class="count">12</span> </div>
CSS
.icon { width: 50px; Height: 50px; background: url(/images/icon.png) } .icon .count { background:#ff0000; position: absolute; top: -8px; Right: -8px; min-width:14px; height: 14px; color:#ffffff; border-radius: 50%; padding: 2px; text-align: center; font-size: 12px; }
Now all you have to do is figure out when to insert the number into the bubble
EDIT : missing class icon icon.
source share