Conteo de PD cuántos elementos ocurre en otra columna
df['Counts'] = df.groupby(['Color'])['Value'].transform('count')
Hambo
df['Counts'] = df.groupby(['Color'])['Value'].transform('count')