Rank of Teichmüller modular groups