My apologies for the mistake, you should use the Count property, not Length.

So, to get the length of the priority queue, you would use:

int length = queue.Count;
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence