attrcnt(<object>[/<wild-pattern>])
Returns a count of the attributes set on <object>. If <wild-pattern> is given, only attributes matching it are counted.
lattr()