Use Pandas DataFrame instead of Counter to keep track of co-occurrence frequencies.