int countPiece(String piece, String arrngs) { return (RegExp(piece).allMatches(arrngs).toList().length); }