First, discerning male/female is next to impossible in young immature fish. The diameter of the breeding tube is the best way but this is not easy until the fish are mature enough to breed. Behaviours among the fish may help, but generally not much.
As for numbers, five is the minimum. This is a shoaling species that will form a hierarchy within the group, and there will be one (or sometimes more) dominant fish and then more subordinate fish. With fewer than five, there is a very real chance that one or more will be picked on so much they will weaken and die. With five or more, the natural dominance/aggression will be spread out. I will post a video I have posted before about this, as it makes it very clear; the video shows a group of 11 (I think)
Pterophyllum scalare (the "common" angelfish species) in a large tank, and you can see the fish exerting their individuality throughout, with their challenges, but physical interaction is absent because of the number and space. The fish in this video are behaving absolutely normally and as nature intended.
Another option besides the group of five plus is a breeding pair. Angelfish must select their own mates, they will not accept just any fish. Obviously you will have spawning, regularly, to deal with. Some people keep just a lone angelfish, and while this works, it is not something I recommend because the fish is being kept contrary to its natural inclinations, and I cannot endorse that.
The other thing to note is that when one angelfish is alone in an aquarium and more are added, there can be real issues. It is best to add the fish together to an aquarium, at the same time, and make sure they are roughly the same age/size. These are after all cichlids, and they have inherent behaviours and traits.
Byron.
https
/www.youtube.com/watch?v=9gXVgWLbZ-g