Counting rational points on varieties with large fundamental group