changed orderscount method call to async
tiny refactoring