Why not use Docs List API (or GDrive for that matter) to create (or upload) a blank spreadsheet with only first row (read "header") in it?
You could then use Spreadsheets List feed to do batch rows insert w/o worrying how many blank rows you have left.
