    gives the number of bands in an image of the given mode.
    :exception KeyError: If the input mode was not a standard mode.
    )