How do you build a queue class which uses an integer data member 'count' that stores the number of elements currently in the queue to distinguish between a queue-full and a queue-empty condition instead of keeping an empty slot between the front and the back elements.

Thanks.