```python
# 已经给定的代码
import pandas as pd
f500 = pd.read_csv('f500.csv', index_col=0)
f500_sel = f500[['company', 'rank', 'country', 'sector', 'revenue', 'profit']][50:55]
# 在此处进行代码补充
countries = f500_sel['country']
country_counts = countries.value_counts()
print(countries)
print(country_counts)
```