  
      @property
      def count(self):
          """ Number of faces or frames """
          if self.vid_reader is not None:
              retval = int(im_ffm.count_frames_and_secs(self.folder)[0])
          else:
              retval = len(self.file_list_sorted)
          return retval
  
 
</s> remove             logger.verbose("Video exists at : '%s'", self.folder)
 </s> add             logger.verbose("Video exists at: '%s'", self.folder) </s> remove         if self.vid_reader is not None:
 </s> add         if self.is_video: </s> remove         iterator = self.process_video if self.vid_reader is not None else self.process_frames
 </s> add         iterator = self.process_video if self.is_video else self.process_frames
        if self.is_video:
  
      @property
      def count(self):
          """ Number of faces or frames """
        if self.is_video:
              retval = int(im_ffm.count_frames_and_secs(self.folder)[0])
          else:
              retval = len(self.file_list_sorted)
          return retval
  
keep keep keep keep replace keep keep keep keep keep
 Fix output for alignments tool tasks when input is a video 
tools/lib_alignments/media.py