Merged get_hits and get_misses functions into get_stats