fixed --count for DBMSes that are single-database