Now the Queue stores the time of enqueuing the item.
The queue counts the input and output items.
Fixed function queueCount and added functions queueInputCount and queueOutputCount.