Each octave in the piano is composed of 8 keys with the end key overlapping the next one which means the last key is the first key of the next octave. In 52 white keys, there are 7 octaves which is composed of 43 full keys and 7 overlapping keys. Answer to this problem is 7 octaves.