James is building a sculpture of a pyramid having four triangular sides and a square base. The interior of the pyramid will be made of hollow brass spheres. If James wants the finished pyramid to be 7 layers high, how many of the brass spheres will he need to construct?