Mysql_num_rows converted to pdo