I recall those lines from a chidren's book of riddles, rhymes, and games published about 1950. Your 'song' appeared as a 4-line verse. Perhaps that's all there is, but, as Bert has pointed out, it is easy to incorporate the idea into verse collections.