Text this: The origins of writing and arithmetic