@narges: the problem was that you sorted by coordinate rather than read name, which is required for pair-end reads.
Try instead:
Code:
samtools sort -n accepted_hits.bam accepted_hist.sorted
samtools view accepted_hits.sorted.bam | htseq-count - /hg19/Annotation/Genes/genes.gtf > count.txt