Retirement tax questions

when I take the RMD before April 1, 2022, does it count for the income of 2021 or 2022?