A C++ program for estimating detector sensitivities to long-lived particles: Displaced Decay Counter