Level 3
These things are ussually done with javascript. My favorite package : https://github.com/filamentgroup/SocialCount/
If your insists on making a server side render for this. Learn about facebook/twitter... 's API to get count data of your URL. Then use Guzzle (or even plain old CURL) to fetch data and show it in your views