In the past, if you lost your sheep around the village, they would be stored in this triangular hedge called a pinfold.
"Nearly every village once had its pound for stray cattle, pigs, geese, etc. to be driven into and there kept at the expense of the owner, till such time as he should pay the fine (the amount claimed by the person on whose land they had strayed, for damage done), and the fee to the pound keeper, man or sometimes woman, for feeding and watering the same.
If not claimed in three weeks, the animals were driven to the nearest market and sold, the proceeds going to the impounder and pound-keeper. An ingenious form of receipt was sometimes used. The person who found the animals on his land cut a stick and made notches, one for every beast, and then split the stick down the centre of the notches so that half each notch appeared on each stick; one half he kept, the other he gave to the pound-keeper.
When the owner came to redeem his property and had paid for the damage done, the impounder gave him his half stick. He took this to the pound-keeper, and if the two pieces tallied, it proved he had paid and his beast was freed. Hence the word tally-stick and the pound-keeper being referred to as the tallyman"