added total count inside map