OffsetArrays methods for querying dimensions?

I also don’t have first-hand experience but it seems like it is/was a common problem, like said here and in the docs/tutorials.