Cooperative multiple unmanned aerial vehicles (UAVs) have been widely exploited in various applications, including data collection, forest monitoring, edge computing, and so on. Due to limited onboard storage and expensive hardware costs, reducing both the energy consumption and the number of UAVs is critical for these multi-UAV applications. However, existing studies primarily revolved around energy minimization in two-dimensional (2-D) scenarios, given a sufficient but fixed number of UAVs, and most of them considered specific application scenarios, resulting in poor generality. In contrast, this paper defines a generalized application scenario, in which multiple ground nodes (GNs) are accessed by multiple UAVs in three-dimensional (3-D) scenarios, and aims to minimize the energy consumption by employing the necessary (or equivalently minimum) number of UAVs and formulating a mix-integer nonconvex problem. To this end, this paper decomposes the problem into two subproblems: energy consumption minimization for a single UAV consecutively accessing any two GNs and energy-efficient multi-UAV GN-accessing path planning employing the minimum number of UAVs. The first subproblem is solved by applying the successive convex approximation (SCA) technique and the path discretization method, while the second subproblem is addressed by designing a three-stage approximation framework based on modified particle swarm optimization (MPSO) and greedy path assignment (GPA). Comprehensive simulations demonstrate the superior performance of the proposed method in terms of optimality and efficiency compared to several other counterparts.