Write how many objects there are.