Intervals are counted by note names: from C to E is a third (C, D, E), from C to G is a fifth, and from C to the next C is an octave.
Some intervals sound smooth together (thirds, fifths, octaves) and some sound tense (a second or a seventh). Music moves between tension and rest.