It seems you are attempting to ask how to calculate an expression, its not clear to me that this involves counting, so I can't be confident that I understand your intent. My best guess is that you wish to calculate
exp(1)*2/(1-pi)
which R evaluates to
-2.538561