#include "tensorstore/index_space/index_domain.h"
RankType tensorstore::IndexDomain<Rank, CKind>::rank() const;

Returns the number of dimensions.