Addition and counting: the arithmetic of partitions