Added test for cursor.count.