Stock always goes up after layoffs. Hell, the stock goes up after _rumors_ about layoffs.
WhatsApp famously had ~50 employees for ~$16 billion in acquisition price.
The show Silicon Valley has a great parody of this fact: https://www.youtube.com/watch?v=YZFTaEenaHM