[BugFix] getMemoryUsage()

Both getMemoryUsage() and formatBytes() need to be static for
getCounts() to return a value for the memory usage.