Get poly count or select all polys

I need to either of these to make a script work. I need to either be able to get the poly count of the currently selected object or to be able to select all the poly in that object. How would I do that?

-RyanT

polyEvaluate -f

Thanks much )

-Ryan