views.item: set count so template's onclick method works to split stack