Ships, Barks, and Barkentines had 3 or 4 masts. Brigs and Brigantines had two. Sometimes schooners might have square topsails set on the foremast. But unlike these vessels, such a schooner would have a gaff foresail.
The diagram is from the Nova Scotia Museum Info poster, Sailing Ship Rigs.