Counting the stars one by one