just found that one and looks like your getGoogleShareCount method returns g+ counter instead of shares. not sure about that , please confirm.
bradsknutson.com/blog/get-google-sh ...
<?php
	$shares_url = 'https://plus.google.com/ripple/details?url='. $url;
	$response = file_get_contents( $shares_url );
	$shares_match = preg_match('@([0-9]+) public shares@',$response,$matches);
	$shares = $matches[1];
	echo $shares;
?>