In the song "The Twelve Days of Christmas," the gift-giving begins on the first day with "a partridge in a pear tree." Each subsequent day, the number of gifts increases by one. Therefore, the total number of gifts given by the end of the twelve days is 78.