created a def count