updated testing in count_interface; matrix multiplication is good