support for row-count over data.frames
added some detection methods