title: Guzzle Error count(): Parameter must be an array or an object that implements Countable in
body: <p>I am following with the article below, 
  <a href="https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/web-php" rel="nofollow noreferrer">https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/web-php</a></p>
  
  <p>But in the end, when I try with the sample code (HelloAnalytics.php), it will shows the error in command line as follows and cant get the data;</p>
  
  <blockquote>
    <p>PHP Warning:  count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67</p>
    
    <p>Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67
        PHP Warning:  count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67</p>
    
    <p>Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67
        PHP Fatal error:  Uncaught Google_Service_Exception: {"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Project 687417168367 is not found and cannot be used for API calls. If it is recently created, enable Google Analytics API by visiting <a href="https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367" rel="nofollow noreferrer">https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367</a> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","extendedHelp":"<a href="https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367" rel="nofollow noreferrer">https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367</a>"}],"code":403,"message":"Project 687417168367 is not found and cannot be used for API calls. If it is recently created, enable Google Analytics API by visiting <a href="https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367" rel="nofollow noreferrer">https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367</a> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."}} in C:\xampp\htdocs\vendor\google\apiclient\s in C:\xampp\htdocs\vendor\google\apiclient\src\Google\Http\REST.php on line 118</p>
    
    <p>Fatal error: Uncaught Google_Service_Exception: {"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Project 687417168367 is not found and cannot be used for API calls. If it is recently created, enable Google Analytics API by visiting <a href="https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367" rel="nofollow noreferrer">https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367</a> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","extendedHelp":"<a href="https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367" rel="nofollow noreferrer">https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367</a>"}],"code":403,"message":"Project 687417168367 is not found and cannot be used for API calls. If it is recently created, enable Google Analytics API by visiting <a href="https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367" rel="nofollow noreferrer">https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=687417168367</a> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."}} in C:\xampp\htdocs\vendor\google\apiclient\s in C:\xampp\htdocs\vendor\google\apiclient\src\Google\Http\REST.php on line 118</p>
  </blockquote>
  
  <p>Can somebody assist me?
  Thanks</p>