If I have a table like
customer liked
1 true
2 true
3 true
1 true
2 false
How can I count the total liked but group by customer, so I end up with something like:
customer total_likes
1 2
2 1
3 1