added a way to get the number of samples per project without querying all of them