List and count the unique terms python