CS4: Measuring the Creativity of Large Language Models Automatically by Controlling the Number of Story-Writing Constraints