Changes the permissions of a list of files. The first element of the list must be the numerical mode. Returns the number of files successfully changed.