Brazil experienced two quarters of recession , as global demand for Brazil 's commodity-based exports dwindled and external credit dried up .