Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE city ( city_id number, official_name text, status text, area_km_2 number, population number, census_ranking text )
TABLE: CREATE TABLE competition_record ( competition_id number, farm_id number, rank number )
TABLE: CREATE TABLE farm_competition ( competition_id number, year number, theme text, host_city_id number, hosts text )
TABLE: CREATE TABLE farm ( farm_id number, year number, total_horses number, working_horses number, total_cattle number, oxen number, bulls number, cows number, pigs number, sheep_and_goats number )

### Question ###
Count the number of farms.

### Accurate SQL ###

SELECT COUNT(*) FROM farm