.. highlightlang:: us .. _obj_count_str: obj_count_str ============= .. index:: obj_count_str .. us.tag obj_count_str NOTREADYENGLISH New410 obj :ref:`obj_count_str` returns the number of string keys in an object. .. function:: n = obj_count_str(obj) .. us.return **Return Value** *n* is the number of string keys in the object. .. us.params **Parameters** .. uparam:: obj *obj* is the object created with :ref:`obj_create`. .. us.comment **Comment** An alternative syntax for ``n = obj_count_str(obj)`` is ``n = obj.count_str()``. .. us.example **Example** :: obj = obj_create() obj.a = 123 obj.b = 456 print obj.count_str() // prints 2 .. seealso:: :ref:`overview-uniscript-objects`, :ref:`obj_count`, :ref:`obj_count_num` :sub:`id-1528563`