The country has been under the leadership of 13 Nigerians since its independence in 1960. Seven of these leaders either oversaw military governments or were connected to the military.
For the avoidance of doubt, a president is different from any other kind of leader insofar as the president’s position is designated as such, per constitutional rudiments. So although all of the 13 men were heads of state, technically, not all of them were presidents of Nigeria.
More about this
Some of Nigeria’s military capos were appointed while others were elected. In all, four (ex-)military men have so far been designated as presidents of Nigeria.