made create_read_counts faster and less redundant