Future<int> instead of int for length method