Determination of count losses and pile-up pulse effects in quantitative and qualitative analysis became a vital step in various analyses. Therefore, compensating for counting losses is of importance. These counting losses are due to the pulse pile-up, paralyzable and non-paralyzable system dead time or a combination of these mechanisms. In this work, a new method is suggested for the correction of dead time losses resulting from the above mechanisms. For this purpose, a source code was developed. It was found that the peaking time was an important parameter over system dead time. The method suggested seems to be more effective even at high count rate. (C) 2009 Elsevier B.V. All rights reserved.