Cash checking and counting machines