Herbert and Mary Knapp noted that, while folklorists have generally chosen to ignore “fartlore,” it seems very unlikely that kids haven’t been making fun of farts for a very long time. Heck, there are fart jokes in The Canterbury Tales , and some say that the oldest recorded joke is Something that has not happened since time out of mind: a young wife did not fart in her husband’s lap.
In 1889, Scottish Reverernd Walter Gregor wrote up a collection of counting out rhymes, and just happened to include one that wa probably not used as rhyme to determine who was it so much as to determine who had farted:
I think, I think,
I fin’ a stink,
it’s comin’ from Y-O-U!
Gregor noted that whoever was pointed at with the “U” was “beaten with bonnets” until he or she cried out the word “peas!”
It’s easy enough to connect this to any number of modern counting out rhymes, most notably “Inka Binka” and “Skunk in the Barnyard.”