Initial entity tile count code - will probably break