dovrebbe essere una cosa di questo tipo:

codice:
SELECT COUNT(goal), palla FROM tableName GROUP BY palla