code: static int getNodeTypeReferenceCount(
        Node node, Token type, Predicate<Node> traverseChildrenPred) {
      return getCount(node, new MatchNodeType(type), traverseChildrenPred);
    }
docs: Finds the number of times a type is referenced within the node tree.