Answer:
1 
Explanation:
In a pyramid, there is only one base that touches the ground. 
However, in a prism, there are two bases, two of the same ends.
The front of the name of the shape also hints:
If it's an octagonal prism, there are two octagon bases.
If it's a hexagonal pyramid, there is one hexagon base.