Removed count from __init__ and to_json methods