code: def _count_unknown_dims(shape):
      cnt = 0
      for dim in shape:
          cnt += dim < 0
      return cnt
  
file_path: chainer/chainer/functions/array/reshape.py
imports: import chainer
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: _count_unknown_dims(shape) and returns: cnt