statement_count: record how many statements there are in a function