change functions names from numDofsInsideXXX to numDofsInXXX