How to create a task with Oban, does not work

Is there a function to count running tasks and queued tasks with their status? Like available or scheduled? Or we should query to database?

I could not find in Oban — Oban v2.12.1 page