Count negedge, and start recording on file load