def set_finished(self):
component_name = self.get_component_name()<EOL>self.log(<EOL>logging.INFO,<EOL>"<STR_LIT>", <EOL>component_name)<EOL>existing_state = self.__get_state(component_name)<EOL>assert existing_state == fss.constants.PCS_RUNNING,"<STR_LIT>""<STR_LIT>" + str(existing_state) + "<STR_LIT:)>"<EOL>self.__set_data('<STR_LIT:count>', self.__push_count)<EOL>self.__set_state(fss.constants.PCS_FINISHED)<EOL>
This stores the number of items that have been pushed, and 
        transitions the current component to the FINISHED state (which precedes 
        the STOPPED state). The FINISHED state isn't really necessary unless 
        methods/hooks are overridden to depend on it, but the count must be 
        stored at one point so that thenext components knows how many items to 
        expect. This is done by default after the loop breaks, but can be 
        manually called sooner, if desired.