Rewrote function to count or extract protein pairs from a large sequence similarity search result table.