sentence: pennsylvania ranks fourth in the united states in dairy production , fourth in horticulture retail sales , first in agaricus mushroom production ( 62 % of u.s. output during 2011 -- 12 ) , fourth in apple production , fourth in grape production , and seventh in winemaking .