add object struct and count.