Remove autoFields from count method

When autoFields was set to true and count method was triggered, autofields were added to the query and SQL failed due to wrong format.