@java.lang.Override
      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
        if (((bitField0_ & 0x00000001) != 0)) {
          output.writeMessage(1, getEntity());
        }
        if (count_ != 0) {
          output.writeInt32(2, count_);
        }
        getUnknownFields().writeTo(output);
      }
<pre>
Count of the object.
</pre>

<code>int32 count = 2;</code>

@return The count.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/OccupancyCountingPredictionResult.java