added name and changed total to count