Added function to print class counts
Added function to adjust for haemodynamic lag