Fix displaying item counts in actionbar.

This bit was accidentally deleted in 46a744e4.
Merge pull request #1274 from dorkster/fixes

Fix displaying item counts in actionbar.