PrintObject prints the number of heap and stack froms.