Bounds on the dimension of spaces of multivariate piecewise polynomials