This is the same as the function above. Can we make a new function `getEditCodeLines` so this function becomes:

```
exports.getNumGivenBlocks = function() {
   return (BlocklyApps.editCode ? getEditCodeLines() : getGivenBlocks().length);
}
exports.getNumBlocksUsed = function() {
  return (BlocklyApps.editCode ? getEditCodeLines() : getUserBlocks().length);
}
```