Lista de recuentos de aleteo

var comments = <Comment>[...];
var count = comments.where((c) => c.product_id == someProductId).toList().length;
S.Mahdi