added quantifyTypology template