def METHOD_NAME(self):
    """Returns number of boxes held in collection.
    This number is inferred at graph construction time rather than run-time.
    Returns:
      Number of boxes held in collection (integer) or None if this is not
        inferable at graph construction time.
    """
    return self.data["boxes"].get_shape().as_list()[0]