code: def count_type(self, type):
      if self.parent:
          return self.parent.count_type(type)
  
      return self.types_count[type]
  
imports: from __future__ import absolute_import
  from collections import defaultdict
  import six
  from .None import errors
  from .fields import NotSet
label_desc: Use image node_id 5 for calling the Builder obj's underlying member method code with example usage: obj.count_type(type) and returns: self, self