javascript get object properties count