Fix displaying item counts in actionbar.

This bit was accidentally deleted in 46a744e4.