count primitives