ring: return remaining entry count when dequeuing