Text/Excel file data count

Job ID: 33486080

Budget: $10 – $30 USD

I have an excel/txt file with counts for a research project. I need a code that will simply count the number of transitions from column to column (representing 2 monitors in real life) and give a total number of transitions.