Thus F major ( D minor ) has one flat which is on the B ; then B ♭ major ( G minor ) has two flats ( on B and E ) and so on .
The reason why there are fifteen and not twelve is because three of them have two possible names : F sharp major ( 6 sharps ) can also be called G flat , C sharp is D flat and B is C flat .