The lines both have 10 syllables. /I/mag/in/a/tion! /who/ can/ sing/ thy/ force? Or/ who/ de/scribe/ the/ swift/ness/ of/ thy/ course?/ Iambic pentameter is a line of poetry that has five feet (penta) of 2 syllables that are unstressed then stressed (iamb). This 2 feet five times equals 10 syllables.
Trochaic tetrameter has four feet that are trochees. A trochee is 2 syllables (stressed then unstressed). A line of trochaic tetrameter has 8 syllables. Spondaic hexameter has spondaic feet. A spondee has two stressed syllables. Hexameter is six feet. A line of spondaic hexameter has 12 syllables. Anapestic pentameter has anapest feet. An anapest is two unstressed syllables followed by a stressed syllable - 3 altogether. Anapestic pentameter has 15 syllables. Iambic hexameter has 12 syllables.