fixes bug when count: 'x' (with quotes) is set in the yaml config