Groups Of Homotopy Classes: Rank Formulas And Homotopy-Commutativity