In a few countries , prostitution and operating a brothel is legal and regulated .
In some countries operating brothels is legal , in other countries it is illegal .