How do poets create meter in a poem?

by using a pattern of stressed and unstressed syllables
by making sure there are a certain number of lines
by breaking the lines up into stanzas
by making a pattern of rhyming words