Headcount isn't going down because the layoffs aren't principaled actions to "right-size" companies, but rather convenient buttons pushed to make numbers look better. The underlying causes of headcount growth are never meaningfully addressed afterwards, so any losses are quickly grown back after a token hiring freeze.