dm: cpu: Add a new get_count method to cpu uclass