how to output twitter followers in elgg

Hello guys I found this code to output Twitter followers count but I need help to integrate it to my plugin in elgg...any assistance or advice (code too) is welcome..thanks.
User Profile username or twitter handle is 'stackoverflow'.
////////////////code here//////////////
$tw_username = 'stackoverflow';
$data = file_get_contents('https://cdn.syndication.twimg.com/widgets/followbutton/info.json?screen_names='.$tw_username);
$parsed = json_decode($data,true);
$tw_followers = $parsed[0]['followers_count'];
/////////code ends here/////////

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking