Fix #381 dbpdoEngine::num_rows() doesn't work as expected

I stole the implementation from here: https://github.com/rogeriopradoj/CodeIgniter/commit/27738491fc11d0b9ce5670b2f6a7957fc421ee4b#diff-5176095eb6241feaef3b41e2c6538255L37