cursor.count() work correctly after .toArray() invoked.