Use "Amazon Order History Reporter" Chrome extension
Download "All years" as CSV (or individual years)
python3 analyse_orders_pandas.py <filename.csv>
Filename should be in the format name_year_XXX.csv
2017 Total orders: 180 Kindle orders: 103 Other orders: 77