added counter for registration closure