Cubes

A cube composed of individual smaller cubes is shown on the left below. Some of the mini cubes are removed from the big cube to make it the shape shown on the right. How many mini cubes were taken out?


A. $46$
B. $17$
C. $27$
D. $47$
E. $45$