Problem: The cubic unit cell of a perovskite structure containing atoms of types A, B, and C is illustrated below. What is the empirical formula of this substance?

(A) ABC (B) ABC_{3} (C)AB_{4}C_{6} (D)AB_{8}C_{12}

The correct answer is (B). I initially did this problem by counting how many of each type of atom there was in the cubic unit cell, so I got (D), which was obviously wrong. I do not understand how the answer could possibly be (B), because it seems like there are far more B atoms than A atoms, while the answer choice says that they are equal. I think I do not fundamentally understand what the unit cell says about the empirical formula...could someone explain why the answer is (B)?