Count the number of farms.
select count(*) from farm