Count And Write The Objects