The number of configurations of an assembly with long-distance order