A report released Friday by the U.S. Department of Agriculture found a decline in the number of farms in New York over the last five years.

The report, highlighted by the New York Farm Bureau, found there were 33,438 farms in the state in 2017, a decline of 2,100 since 2012.

It’s the largest drop in the number of farms in more than two decades and triple the national average of a 3 percent decline.

“The losses run the gamut, including a nine-percent drop in both the smallest and largest farms in terms of value of sales,” the Farm Bureau found. “New York also saw a nearly 20-percent decline in the number of dairy farms in the state. These losses coincide with nine-percent increase in labor costs, while some other production costs, like feed, gasoline and chemicals, declined. The average net farm income of $42,875 per farm is slightly below the national average.”

Meanwhile, farms are getting larger, a likely consequence of consolidation. The average farm size is now at 205 acres, an increase from 202 acres in 2012.

There are 6.8 million acres in production, down from 7.2 million five years previously.

The vast majority of farms in New York, 98 percent, are family owned. The average age of an agriculture producer is nearly 56 years old.

There was some good news for agriculture: There was a 35 percent increase in organic farms, growing from 864 farms in 2012 to 1,330 in 2017. Vegetable and fruit farms are also growing, while there was a 15 percent increase in maple operations.