Track number of fragments on back stack and use it to update action bar.