update entry/exit stream
 - when task has only entry/exit stream, its countRec is -1 (guideline
   for the priority function)