Fixed getblocknumber function

changed getblocknumber to getblockcount