remove order clause when count is called

Fix for the issue #603