code: def get_font_stats(self):
      fonts = [s.font for s in self.get_nonblank_spans()]
      font_counts = Counter(fonts)
      return font_counts
  
imports: from collections import Counter
  from typing import List, Optional, Tuple
  from pydantic import BaseModel, field_validator
  import ftfy
  from marker.bbox import boxes_intersect_pct, multiple_boxes_intersect
  from marker.settings import settings
label_desc: Use image node_id 5 for calling the Page obj's underlying member method code with example usage: obj.get_font_stats() and returns: font_counts