Investors & landlords

Do I count what I paid in 2020 for 2019 tax year or count the amount paid in 2019 for 2018 tax year?