If N is the number of spheres in the unit cell, then total no. of octahedral voids is the cell is
N
Total number of octahedral voids is equal to the Zeff of any unit cell. If N is the Zeff, which is the number of spheres (by spheres we mean effective spheres), the number of octahedral voids is N.