Cities grew rich on the profits of trade. Even before the invention of writing, small clay or stone accounting tokens were used to keep track of commodities. These examples are from Jemdat Nasr, c.3000 BC.
[1926.441c, 1926.441d, 1926.512, 1926.516-8]