It doesn't calculate, but it does regulate, via your right hand much air enters the motor. The ECU doesn't dictate anything to do with airflow, aside from secondary plates, it only references how much SHOULD be there, based on knowing how much air mass (tables), the engine flows at a given RPM/throttle position.
ECUs that dictate airflow are ride by wire systems where you are asking for a certain throttle position, which, it may or may not give you depending on coding.
Nothing in the rocket measures the amount of air entering the motor, nothing. The fueling is all done based on how much SHOULD be there, thus MAP based system vs a MAF based system. That is why small things require a remap, because small changes the amount of flow vs what the ecu thinks is there, a MAF system would adjust within a set limit, automatically.