Query count number of times of each value appears in a query

Hello all, I have a schema like bellow:

type Sample {
Sample_name
Sample_type
collectedFrom
}
type FoodProduct {
Name
Description
sourced
isAnimalSource
}
type AnimalSource {
Name
}

I would like to do a query where I count how many times a animal source name appears.
for example:
Pig: 2
Chicken : 1

here is an example of a query:

{
Samples(func: eq(Sample_type, “FoodProduct”))
{
Sample_name
collectedFrom @filter(eq(isAnimalSource,true)){
hasAnimalSource {
Name
}
}
}
}

the result is:

{
“data”: {
“Samples”: [
{
“Sample_name”: “DAR-FD-2008-MI-00992”,
“collectedFrom”: [
{
“hasAnimalSource”: [
{
“Name”: “Cow”
}
]
}
]
},{
“Sample_name”: “GTA-FD-2010-MI-00127”,
“collectedFrom”: [
{
“hasAnimalSource”: [
{
“Name”: “Pig”
}
]
}
]
},

Any ideas?
Thanks