use name && count to replace template