A counting method for the determination of small amounts of radium and of radon