update total pin modes number