I'm trying to use C# to create a class that has a count of tasks that are currently running and it should have a method to wait until the count reaches 0. How can I do that? There should be exactly 2 paragraphs separated by the markdown divider: ***.
user