Function Count Does Not Exist Vs Undefined