Merge pull request #10710 from senny/5554_let_the_database_raise_on_counts

Remove column restrictions for `#count`, let the database raise if the SQL is invalid.
Conflicts:
	activerecord/CHANGELOG.md