Avoid building (nearly) the same list multiple times just for counting.
Avoid building (nearly) the same list multiple times just for counting.

Building a list just counting elements of another list matching a certain
condition is overhead. Doing this multiple times with the same input-
list starts becoming ugly code.

Replace this by iterating over the input-list once and simply count.

KerkhoffTechnologies/shinken,kaji-project/shinken,naparuba/shinken,gst/alignak,rednach/krill,dfranco/shinken,fpeyre/shinken,h4wkmoon/shinken,mohierf/shinken,KerkhoffTechnologies/shinken,rledisez/shinken,h4wkmoon/shinken,rledisez/shinken,kaji-project/shinken,xorpaul/shinken,savoirfairelinux/shinken,KerkhoffTechnologies/shinken,lets-software/shinken,xorpaul/shinken,claneys/shinken,lets-software/shinken,rledisez/shinken,Aimage/shinken,tal-nino/shinken,peeyush-tm/shinken,lets-software/shinken,ddurieux/alignak,titilambert/alignak,tal-nino/shinken,ddurieux/alignak,staute/shinken_package,mohierf/shinken,rednach/krill,Alignak-monitoring/alignak,mohierf/shinken,peeyush-tm/shinken,dfranco/shinken,savoirfairelinux/shinken,staute/shinken_deb,fpeyre/shinken,staute/shinken_package,claneys/shinken,savoirfairelinux/shinken,Aimage/shinken,peeyush-tm/shinken,xorpaul/shinken,mohierf/shinken,dfranco/shinken,Simage/shinken,geektophe/shinken,mohierf/shinken,tal-nino/shinken,titilambert/alignak,naparuba/shinken,peeyush-tm/shinken,ddurieux/alignak,mohierf/shinken,kaji-project/shinken,xorpaul/shinken,h4wkmoon/shinken,lets-software/shinken,dfranco/shinken,peeyush-tm/shinken,savoirfairelinux/shinken,fpeyre/shinken,dfranco/shinken,naparuba/shinken,Simage/shinken,naparuba/shinken,claneys/shinken,geektophe/shinken,rednach/krill,kaji-project/shinken,staute/shinken_deb,KerkhoffTechnologies/shinken,fpeyre/shinken,Aimage/shinken,Simage/shinken,h4wkmoon/shinken,xorpaul/shinken,Aimage/shinken,h4wkmoon/shinken,naparuba/shinken,xorpaul/shinken,tal-nino/shinken,ddurieux/alignak,tal-nino/shinken,staute/shinken_deb,dfranco/shinken,rledisez/shinken,titilambert/alignak,ddurieux/alignak,staute/shinken_deb,claneys/shinken,staute/shinken_package,Simage/shinken,Simage/shinken,peeyush-tm/shinken,xorpaul/shinken,claneys/shinken,staute/shinken_deb,savoirfairelinux/shinken,geektophe/shinken,rledisez/shinken,gst/alignak,geektophe/shinken,fpeyre/shinken,kaji-project/shinken,naparuba/shinken,staute/shinken_package,h4wkmoon/shinken,geektophe/shinken,lets-software/shinken,staute/shinken_package,Aimage/shinken,staute/shinken_package,KerkhoffTechnologies/shinken,KerkhoffTechnologies/shinken,Simage/shinken,claneys/shinken,fpeyre/shinken,lets-software/shinken,kaji-project/shinken,titilambert/alignak,h4wkmoon/shinken,ddurieux/alignak,rednach/krill,rednach/krill,staute/shinken_deb,gst/alignak,Alignak-monitoring/alignak,Aimage/shinken,xorpaul/shinken,rledisez/shinken,kaji-project/shinken,geektophe/shinken,gst/alignak,rednach/krill,tal-nino/shinken,h4wkmoon/shinken,savoirfairelinux/shinken