add count method to dao

This was getting quite annoying running through the test script and doing some checks in iPython, so here it is in all it's glory, a new .count method for all the models.