#906: Implement hack-ish solution for SQLite's num_rows feature.