Fixed vendor count on api endpoint when grouped by pools, closes #139