I think that if you ask David real nicely and give him some lovin’ he would be able to alter Countee a little to also be able to count entries with a certain value.
My implementation would be something like this:
// Count member total_entries
{ecp:countee member='{logged_in_member_id}'}
// Count entries with a certain value
{exp:countee custom_field_name='Blue'}
This way you could even count the number of entries belonging to a certain member AND containing a certain value.
{exp:countee member='{logged_in_member_id}' custom_field_name='Blue'}
Of course you could extend its functionality even more and include all the parameters also available for the channel module, but that would seriously impact the speed and query load on the page.
If David is too busy with pleasing all the e-commerce peepz to implement this, I would be happy to take a look at it (if he doesn’t mind).
And Brooks query would do the trick, but with a little change it would be more efficient:
{exp:query sql="SELECT COUNT(*) AS entry_count FROM exp_channel_data WHERE field_id_77 = ‘Blue’"}
{entry_count}
{/exp:query}
This would return only 1 row with the needed value instead of the entire set of entries matching the query.
Greetz,
Wouter