Created tilesLoaded() function.

Added a function to retrieve the number of tiles loaded in
the tile manager.