An interval measures the distance between two pitches. From C up to the next C is an octave, counted as an eighth. If the upper note rises still farther, the interval is compound. C up to D in the octave above is a ninth; C up to E is a tenth.
Counting includes both letter names at the ends. A compound interval also has a related simple interval: a tenth can be understood as an octave plus a third. That connection can help you hear a large leap without treating it as an entirely new pattern.