# [PowerShell], 56 bytes

Takes a single number as a string; outputs 0 for other, 3 for integer, and 4 for float

<!-- language-all: lang-powershell -->

    ("$args"-match"^-?(0|[1-9]\d*)(\.\d+)?$")+$matches.Count

[Try it online!][TIO-l0qww7xu]

[PowerShell]: https://github.com/TryItOnline/TioSetup/wiki/Powershell
[TIO-l0qww7xu]: https://tio.run/##XZFdb4IwFIav5VcY0g0YlsD0ZjGNLmYmu5gu81KdqXj8WBAYbbMlwG9npUWdJuScntPnPR80TX4gY3uIogpt26SdV7aJaLZjJj5SHu7NTzyw/WIe4KflYvPg2AtvsXGdATIdFykCmDdKRMyr0kAZMBHxN5rKSkPbmvI9ZFbH0t9rzGGn4nGUUG45BuLAOFPsMJ@I41qOQqQu8HxfYtj3aicjy@m//KYQctiQXtm5gnuPNarMFde94QLo6mIQ1gfcxIC1c1USB6qlq92ETrSkmUMaL5DGVz39q3Z@Kff5UPvrjU7rFXe50UKxHkTeoJXXTCXT0Mi1UN@eSv5TFe26SAudsXv5WGh1STGXzN9nI8F4cpyuv6R@Ocxf41RwglaXIW/69Z9DLmhEmiL9mQhDYOwWw/B9IkYRZeywPYSUH5KYXB583hDL0miVRnn@FcWYV38 "PowerShell – Try It Online"