Calculation of the number of chaplets for securing cores in molds