Link between csv and an object

I’m not sure if this is the right place to ask this but I have a football (soccer) shot map animation getting coordinates from a csv I’ve linked to it and I’ve builded a goal counter. But I want to link the counter to that csv so counter can go up +1 everytime a goal happens in the animation. Is this possible?