Count String Method In Python To Pdf