This method extracts the number of colors from an instance of class "CellularAutomaton".
CellularAutomaton
ca$getNumberOfColors()
getNumberOfColors returns an integer >= 2.
getNumberOfColors
John Hughes