human
Count the number of Occurrence of Values based on another column
assistant
Here is some code to get the count of each unique value in column `Country` of dataframe `df` and store in column `Sum of Accidents`

df.Country.value_counts().reset_index(name='Sum of Accidents')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.