class ISINGrid {

    public static int detectRowCount(String productName) {
        Pattern p = Pattern.compile(".*_(\\d{4})x(\\d{4})_.*");
        Matcher m = p.matcher(productName);
        if (m.matches() && m.groupCount() == 2) {
            String binSize1 = m.group(1);
            String binSize2 = m.group(2);
            if (binSize1.equals(binSize2)) {
                int binSize = Integer.parseInt(binSize1);
                return (int) Math.round(Math.PI * RE * 1000 / binSize);
            }
        }
        return DEFAULT_ROW_COUNT;
    }

    public  ISINGrid(int rowCount);

}