NumTiles function

computes the necessary number of tiles from a bounding box and a zoom level