Pandas version checks
Reproducible Example
>>>import pandas as pd
>>>pd.options.mode.use_inf_as_na = True
>>>s = pd.Series([1.1, float("inf"), float("-inf"), 2.3], dtype="double[pyarrow]")
>>>s
0 1.1
1 NaN
2 NaN
3 2.3
dtype: double[pyarrow]
>>>s.count()
4
>>>type(s.count())
<class 'numpy.int64'>
Issue Description
When create a pandas series with pyarrow type "double[pyarrow]", after setting pd.options.mode.use_inf_as_na = True, the inf values are still counted. Also it returns a numpy int64 type scalar instead of pyarrow double scalar.
Expected Behavior
After setting pd.options.mode.use_inf_as_na = True, above s.count() should return 2 as result.
Installed Versions
Replace this line with the output of pd.show_versions()