Update (23.01.16): Social Networks made it harder and harder to get to the share count so I’ll stop trying. I’ll leave this post up and running but be warned: This code won’t work anymore.
Update (24.11.15): After twitter announced that the share count JSON API won’t work anymore after the 20.11.15 the twitter button broke. To fix this I implemented the solution from http://opensharecount.com/. To get it to work you have to sign up for an account and authorize with a twitter account. (I’ve created a new twitter account for that because they’re asking for a few too many rights, namely to tweet on your behalf.)