Replace iomObject.getattrcount() with getNumberOfAttributes()