Function to set ensemble size in operations script