Finding the Number of Cubes in Rectangular Cube Buildings