.. highlightlang:: us .. _obj_count: obj_count ========= .. index:: obj_count .. us.tag obj_count NOTREADYENGLISH New410 obj :ref:`obj_count` returns the number of variables in an object. .. function:: n = obj_count(obj) .. us.return **Return Value** *n* is the number of variables 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(m)`` is ``n = obj.count()``. .. us.example **Example** :: obj = obj_create() obj.a = 123 obj.b = 456 print obj.count() // prints 2 .. seealso:: :ref:`overview-uniscript-objects`, :ref:`obj_count_str`, :ref:`obj_count_num` :sub:`id-448455`