Counting shared butterfly quartets