Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ count
Method
count
Lib/collections/__init__.py:1378–1379 ·
view source on GitHub ↗
(self, item)
Source
from the content-addressed store, hash-verified
1376
return
self.__class__(self)
1377
1378
def
count(self, item):
1379
return
self.data.count(item)
1380
1381
def
index(self, item, *args):
1382
return
self.data.index(item, *args)
Callers
3
test_implementation
Method · 0.95
count
Method · 0.45
ThreadPoolExecutor
Class · 0.45
Calls
no outgoing calls
Tested by
1
test_implementation
Method · 0.76