queue class: adding count method