I figured it was syllables, but my teacher counted it weird when he demonstrated, so…

How do you count beats in a poem?