Removed count_types_in_file function.