class Solution { public int countBattleships(char[][] board) { int count = 0; for(int i=0; i