Added count_extensions