Diane has 9 white buttons. She has 5 fewer brown buttons than white buttons. Diane has 3 more gray buttons than brown buttons. How many buttons does Diane have in all?