Taking this as a starting point
Now counting memory instructions
Testing scripts