Java simple. Easy to understand.
\npublic int countConsistentStrings(String allowed, String[] words) {\n        int counter = 0;\n        for (String s : words) {\n            boolean isValid =
```\npublic int countConsistentStrings(String allowed, String[] words) {\n        int counter = 0;\n        for (String s : words) {\n            boolean isValid = true;\n            for (char ch : s.toCharArray()) {\n                if (!allowed.contains(String.valueOf(ch))) {\n                    isValid = false;\n                }\n            }\n            if (isValid) counter++;\n        }\n\n        return counter;\n    }\n```
['Java']