swapped sizeof() for object.count