Refaktored len() places to .count()