Extract header with column indices.