title: Convert SQL query object into integer
body: <p>Given the code:</p>
  
  <p><code>$counters = $db-&gt;query("SELECT COUNT(film_id) FROM review WHERE film_id = $film_id ");</code></p>
  
  <p>I need to convert the object $counters into an integer. FYI: the query returns a single int i.e 4 (depending on the film_ID) </p>