Bugfix for COUNT() on databases which require the table to be quoted

COUNT calls work fine for databases which are ambivalent about quoting on table names (eg MSSQL, MySQL). However, Firebird gets a little sticky here: if a table name isn't quoted, it's upper-cased and because Firebird is case-sensitive, the engine then complains that it can't find the table in question. IE:
select count(*) from SomeTable
becomes
select count(*) from SOMETABLE
once Firebird gets hold of the statement. The query will then fail since SOMETABLE doesn't exist. This can be fixed with:
select count(*) from "SomeTable"
which Firebird doesn't attempt to mangle in the least.