Counting max streak of succesfull cases for msqueue.h