add total count to graph legend