don't count undefined id's