I imagine that diagonals run in the top-left-to-bottom-right sense, and anti-diagonals in the top-right-to-bottom-left sense (or vice-versa).
How many diagonals does a chessboard have?

Yeah, I saw the term on this chess programming wiki, and that's pretty much how they described it.
https://www.chessprogramming.org/Anti-Diagonals
But I've never heard the term being used by chess players, or in chess books.

When we think of of ranks and files, it is accepted at 8 apiece. But what about diagonals? Looking at the board, I am inclined to say 26. But other places I saw as many as 30 (they include the 4 corner squares as diagonals ?? how can a diagonal be one square?) And as it related to chess programming, they talk of 15 diagonals and 15 anti-diagonals. I didn't even know the term "anti-diagonal" was even used : /
In "https://www.chessprogramming.org/", they consider only "a1" or only "h8" as a diagonal.
But considerate one square like a diagonal it's not usefull (in human chess).
When we think of of ranks and files, it is accepted at 8 apiece. But what about diagonals? Looking at the board, I am inclined to say 26. But other places I saw as many as 30 (they include the 4 corner squares as diagonals ?? how can a diagonal be one square?) And as it related to chess programming, they talk of 15 diagonals and 15 anti-diagonals. I didn't even know the term "anti-diagonal" was even used : /