Spanish & English Corpus

Hello,

I will have a corpus of Spanish and English texts. I need to know of any software/program online (free or not) or offline that enables me to count the nouns, sentences, verbs and so on in this corpus. I'd like to find out the occurence/frequency of such grammatical units in the texts.
I could do it manually but it's better to have an automated process, as I think the margin for error is lower. Plus, I might end up with a large corpus.
Does anyone have any leads? I've heard of programs like this for English but not for Spanish.

Thanks.