Corn originally, before there was much maize eaten by people in England, meant grains or small pieces. Corned beef is treated with larger corns of salt instead of table salt.
But saying that made me realize that I would talk about grains of wheat but a bushel of grain. Back to the countable aspect.