changed back to read_file_contents and used a pointer in the counter linked list instead of embedding values into the pointer