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. $48$
C. $27$
D. $17$
E. $47$