Mapping input data to (hero ID number of co-occurrences) per line