title: PHP PDO equivalent to mysql_num_rows
body: <p>I am using this PDO Query to select from a database:</p>
  
  <pre><code>$stmt = $pdo_conn-&gt;prepare("select * from tickets where ticketnumber = :seq ");
  $stmt-&gt;execute(array(':seq' =&gt; $_GET["seq"]));
  $ticket = $stmt-&gt;fetch();
  </code></pre>
  
  <p>but i cannot get an equivalent to <code>mysql_num_rows</code></p>
  
  <p>I have tried doing:</p>
  
  <pre><code>$stmt = $pdo_conn-&gt;prepare("select COUNT(*), * from tickets where ticketnumber = :seq ");
  $stmt-&gt;execute(array(':seq' =&gt; $_GET["seq"]));
  $ticket = $stmt-&gt;fetch();
  $num_rows = $stmt-&gt;fetchColumn();
  echo $num_rows;
  </code></pre>