https://blog.jamesbrooks.net/posts/graphql-batch-count-loader/
Count loader for graphql-batch - James Brooks