Current law only allows 4 but allows exception for foreigners (but then the name has to fulfill that other countries naming conventions). Though there is a superseding law that roughly says "the name must not intentionally bring harm to the child" meaning they can block you from giving weird/stupid name to a child (so name like Elon Musks youngest "X Æ A-12" would never be allowed to be given to a baby here)