public Integer numPartitions() {
            return numPartitions;
        }
Return the number of partitions to create or null if replicaAssignments is not null.
clients/src/main/java/org/apache/kafka/server/policy/CreateTopicPolicy.java