Edge

An edge is a line segment formed where two faces of a spare figure meet.

A square pyramid has 8 edges.

A cube has a total of 12 edges.