4 or 8 Four (the edges of the base square)
Perhaps four more, depending on the height of the pyramid, the opposing edges could be perpendicular to each other at the apex.
Chat with our AI personalities
Including its diagonals there are 6 perpendicular lines
4
24
24
24