But then she is comforted when she hears the children singing the nursery rhyme `` Tom , Tom , the Piper 's Son '' . Her mind is put at ease by the playing of the children , and their singing of the nursery rhyme `` Tom , Tom , the Piper 's Son '' .