you can use something like below. It's a span (positioned relative), contains the icon and another span which is then positioned absolute.
<span class="count-icon">
<i class="fa fa-2x fa-comment"></i>
<span class="count">3</span>
</span>
And the CSS:
.count-icon {
display: inline-block;
position: relative;
}
.count {
position: absolute;
top: 0;
right: 0;
height: 16px;
width: 16px;
background: red;
border-radius: 8px;
font-size: 12px;
text-align: center;
}
See fiddle: http://jsfiddle.net/mX45f/