Investors & landlords

If I knew how many shares were bought through reinvestment pre-2011; how do you figure out cost basis with that?