Fixed bug in count rate

Fixed a bug in the count rate, and removed the test folder.