I apologize for the confusion. Yes, you're correct. To get the length of the priority queue, you should use the Count property, not Length.

Here's an updated example:

IPriorityQueue<string, int> queue = ...;
int count = queue.Count;

The Count property returns the number of elements in the priority queue.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence