A PHP script to fetch the count of social shares, cache the results and output as JSON, JSONP or XML data.