Liberal Democrat education spokesperson Willie Rennie said the figures showed there were “not enough teachers in key subjects”.