Not sure if this is the best answer you'll get, but not sure how you'd do that in a simple group by statement.
SELECT value, COUNT(*) FROM data where value != 'Y' group by value
union
SELECT value, COUNT(*)*2 FROM data where value = 'Y' group by value
V COUNT(*)
- ----------
X 3
Y 4