Where exactly are you doing this? Your post is not entirely clear...
In the inventory menu? Or in the Favorites (Q) menu?
It should just be done while hitting "Q" in game, selecting the item, and assigning a number. I seem to have issues getting it to register 9 and 0 though.