Count total modules
Fixed conflict