You shouldn't ever have to count lines in vim. The five line deletion example could have been done as:
10dG
Which would delete from the cursor to the tenth line. 10dG
Which would delete from the cursor to the tenth line.delete five from where you are- inclusive