Spectral action in noncommutative geometry: An example