Create a method that returns statistics of tasks in a queue (close #4)