Added back lines used for contribution count

Lines removed in a subsequent pull request broke the contribution count feature. They have been added back.
Merge pull request #240 from parenparen/master

Added back lines used for contribution count