Simple java implementation of a probabilistic approach to define sample size for conducting surveys