how many diagnals does an octagon have?

http://www.mathopenref.com/octagon.html