Removed unused count_object and count_object2 variables.