You asked:

how many kilobytes in a gigabyte

Sorry, I don't yet have an answer to that question.