Create a moderated topic.
As a student, post several messages (they should be pending approval).
As the instructor, lock the topic. Now view the messages in the topic. The counts are now 0 and the pending messages do not appear. If you unlock the topic, you will see the pending messages again.