A method for controlling a washing machine with automatic determination of loading