Adds getCount function to be consistent with other primitives API