Code for removing low counts and plotting entropy