to count the no of homicides by type