❔ An error occurred: 'count' must be non-negative. - C#