docstr: Update the amount of samples that belong to a class in the node
  (not to use twice if you add one sample).
  
  Parameters
  ----------
  y
      Class of a given sample.
docstr_tok: ["Update","the","amount","of","samples","that","belong","to","a","class","in","the","node","(","not","to","use","twice","if","you","add","one","sample",")",".","Parameters","--","--","--","--","--","y","Class","of","a","given","sample","."]
code: def update_count(self, y):
      """Update the amount of samples that belong to a class in the node
      (not to use twice if you add one sample).
  
      Parameters
      ----------
      y
          Class of a given sample.
  
      """
  
      self.counts[y] += 1
  
imports: from __future__ import annotations
  import collections
  import math
  from river import base, stats
  from river.tree.base import Branch, Leaf
  from river.utils.math import log_sum_2_exp
label_desc: Use image node_id 7 for calling the MondrianNodeClassifier obj's underlying member method code with example usage: obj.update_count(y) without return types