You can use the cd command, but if the file you are counting is not in the directory where you want to put the count, you can include the directory name in the command. For example:
wc NC002.gbk > dna/dnaCount.txt
It will put the output of wc (word count) into the file dnaCount.txt