The number of categories is printed to stdout.