Is it possible to limit maximum rooms to 3

Is it possible to limit maximum rooms to be maximum 3 and if someone try to create a 4 room to get error message