The main goal of this article is to review the work of Marius Tarnauceanu, where an explicit formula for the number of subgroups of finite nonabelian p-groups having a cyclic maximal subgroups was given. Using examples to clarify our work and in addition we give an explicit formula to some related problems.