@epoolroy
Something like this:
<a class="card alerts round3 tr1" id="mibew-agent-button" href="/support/chat?locale=en" target="_blank" onclick="Mibew.Objects.ChatPopups['5acf15680bea4e8c'].open();return false;">
<div class="icon">
<i class="fa fa-support tr1"></i>
<span class="count"><?php echo count(Alerts::newInstance()->findByUser(osc_logged_user_id())); ?></span>
</div>
<div class="header"><?php _e('Alerts', 'stela'); ?></div>
<div class="description"><?php _e('Notifications you have subscribed to based on specific search criteria.', 'stela'); ?></div>
</a>
<script type="text/javascript" src="/support/js/compiled/chat_popup.js"></script><script type="text/javascript">Mibew.ChatPopup.init({"id":"5acf15680bea4e8c","url":"\/support\/chat?locale=en","preferIFrame":true,"modSecurity":false,"forceSecure":false,"width":640,"height":480,"resizable":true,"styleLoader":"\/support\/chat\/style\/popup"});</script>