add count to output