javascript get number of object properties