minor update

Added a count function, that can take "where" clause