PDO count issue fixed