This is a well-known fingerplay that in 1998 was illustrated and put in book format by Dan Yaccarino. It’s a book little ones enjoy reading, especially once they are already familiar with the fingerplay and can essentially “read” the book independently. Whether you use the book or not, here’s the fingerplay!
Five little pumpkins, sitting on a gate (Five fingers on top of opposite hand. I usually explain the word “gate” the first time through. For the next five lines, show the number of fingers corresponding with the ordinal number and really play up the rest of the intention of the line with your facial expression.)

