Estimating the size of X-ray lamppost coronae in active galactic nuclei