Count Unique Python Df Preprocessing Data