Hi @Tony Johansson , Welcome to Microsoft Q&A forum and thanks for reaching out here.
As per my understanding, the issue is with your mapping section in copy activity.
Please set the collection reference
as shown below which will help you resolve the issue and copy all records form the counts
array.
Here is another thread where a similar issue was discussed: Data Factory XML validation(Copy Activity) throwing User Configuration error Hope this helps.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.