"fixed" count by reintroducing sorting