count liberties