Parameters of the cost function

Why don’t we consider m (number of datapoints in the training set) in addition to w and b in the cost function parameters?

It is used as a parameter, but it’s derived from the size of the training data set “X”.
There’s no real advantage in passing ‘m’ as a separate parameter.