feat(programmatic): add programmatic instance count()
function
#1161
+46
−28
count()
function
#1161