Extract the value from maxcc command correctly.