Each cell of a \(2 \times 2\) square can be painted either black or white. How many different patterns can be obtained?