Remove product attributes count query. Check directly number of rows fro...

...m query resultset