code: def test_count():
      sm = SystemMonitor(maxlen=5)
      assert sm.count == 1
      sm.update()
      assert sm.count == 2
  
      for _ in range(10):
          sm.update()
  
      assert sm.count == 12
      for v in sm.quantities.values():
          assert len(v) == 5
  
file_path: distributed/distributed/tests/test_system_monitor.py
imports: from __future__ import annotations
  from time import sleep
  import pytest
  import dask
  from distributed.system_monitor import SystemMonitor
label_desc: Use image node_id 3 for calling a global function with example usage: test_count() without return types