How to add field for count of collection times used in relation

System Information
  • Strapi Version: 4

I have two collections, One is for Videos and other for Category, now i have a relation field in Video with category as one to many and I want to add a field in category collection to count how many times the category is used in all videos