Number of farms declines by 8,000