fix pipe
count then number of dispatches needed