Rank of a linear transformation